package com.ntd.study.base.proxy;

import cn.hutool.core.lang.Console;

public class StudyProxyJdk {
    public static void main(String[] args) {
        Hello hello = new DynamicProxy(new HelloImpl()).getProxy();
        hello.hello();
    }
}

interface Hello {
    void hello();
}

class HelloImpl implements Hello {
    @Override
    public void hello() {
        Console.log("hello world!");
    }
}